package protocol

const (
	ReqEcho  = 1
	RespEcho = 2

	RespPing = 10
	ReqPong  = 11

	ReqLogin          = 100
	ReqLoginSuccess   = 111 //登录成功
	ReqLogout         = 500
	ReqChatroomMember = 102
	ReqChatroomMsg    = 121 //收到公聊消息
	ReqPrivateChatMsg = 122 //收到私聊消息

	RespLogin           = 200
	RespChatroomMember  = 231 //公聊列表
	RespChatroomOnline  = 232 //公聊上线
	RespChatroomOffline = 233 //公聊下线
	RespChatroomMsg     = 234 //推送公聊消息
	RespPrivateChatMsg  = 235 //推送私聊消息

	EventUserLogin       = "user-login"        //登录
	EventUserLostConnect = "user-lost-connect" //离线
)
